package com.skywolf.chem.usercenter.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @ClassName PasswordChangeParam.java
 * @Author Leo
 * @Version 1.0.0
 * @Description 用户修改密码参数
 * @CreateTime 2019年12月14日 11:50:00
 */
@Data
public class PasswordChangeParam {

    @NotBlank(message = "旧密码不能为空")
    @ApiModelProperty(value = "旧密码")
    private String oldPassword;

    @Length(min = 5, max = 12, message = "密码长度必须在6-12位")
    @NotBlank(message = "新密码不能为空")
    @ApiModelProperty(value = "新密码")
    private String newPassword;
}
